/**
 * @Date: 2022-04-11 16:30:27
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-11 16:33:20
 * @FilePath: \weibo-api\validator\blog.js
 * @Description: 微博格式校验
 */
const validate = require("./validate");
// 用户检验规则
const SCHEMA = {
  type: "object",
  properties: {
    content: {
      type: "string",
    },
    imageUrl: {
      type: "string",
    },
  },
};
//执行校验
function blogValidate(data = {}) {
  return validate(SCHEMA, data);
}
module.exports = blogValidate;
